#include<iostream>
#include<cstdio>
using namespace std;
const int N = 110;
int a[N];
int main()
{
	int n,i,f,b,c,d;
	cin>>n;
	f=0;
	b=0;
	c=0;
	d=0;
	float e;
	for(i=0;i<n;i++)
	{
		cin>>a[i];
		if(a[i]<=18)
		f++;
		else if(a[i]<=35)
		b++;
		else if(a[i]<=60)
		c++;
		else
		d++;
	}
	e=1.*f/n*100;
	printf("%.2f%%\n",e);
	e=1.*b/n*100;
	printf("%.2f%%\n",e);
	e=1.*c/n*100;
	printf("%.2f%%\n",e);
	e=1.*d/n*100;
	printf("%.2f%%\n",e);
	
	return 0;
}
